﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace WalutyNBP
{
    class Preferences
    {
        public static bool popularne = true;
        public static bool popk = true;
        public static bool popsp = true;
        public static bool podstawowe;
        public static bool pozostale;
        public static bool rozliczeniowe;
        public static bool rk;
        public static bool rs;
        public static bool rsr;
        public static bool w_nazw_w;
        public static bool w_nazw_k;
        public static bool w_sym = true;
        public static bool w_przel = true;
        public static bool aktualne = true;
        public static string adres;
        public static string adres2;
        public static bool aktarch;
        public static DateTime full_date;
        public static string dzien = DateTime.Now.Day.ToString();
        public static string miesiac = DateTime.Now.Month.ToString();
        public static string rok = DateTime.Now.Year.ToString();
        public static string Data()
        {
            string data, d = Preferences.dzien, m = Preferences.miesiac;
            if (Preferences.dzien.Length < 2) d = "0" + Preferences.dzien;
            if (Preferences.miesiac.Length < 2) m = "0" + Preferences.miesiac; 
            data = Preferences.rok.Substring(2, 2) + m + d;
            return data;
        }
    }
}
